package com.example.demo12.entity;

public class CartItem {
    private Product product;
    private int stock;

    public CartItem(Product product, int stock) {
        this.product = product;
        this.stock = stock;
    }

    public Product getProduct() {
        return product;
    }

    public int getQuantity() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
    public int getStock() {
        return stock;
    }
}